<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Ogre_glTF: C:/YbalridSoftware/AnnwvynSDK64/Ogre_glTF/include/Ogre_glTF_OgreResource.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Ogre_glTF
   </div>
   <div id="projectbrief">glTF import library for Ogre</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_ogre__gl_t_f___ogre_resource_8hpp_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Ogre_glTF_OgreResource.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &lt;OgreSharedPtr.h&gt;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;OgreResourceManager.h&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &quot;Ogre_glTF_DLL.hpp&quot;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_ogre__gl_t_f.html">Ogre_glTF</a></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;{</div><div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="class_ogre__gl_t_f_1_1_glb_file.html">   11</a></span>&#160;    <span class="keyword">class </span>Ogre_glTF_EXPORT <a class="code" href="class_ogre__gl_t_f_1_1_glb_file.html">GlbFile</a> : <span class="keyword">public</span> Ogre::Resource</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;    {</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;        <span class="keyword">using</span> byte = Ogre::uint8;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;        std::vector&lt;byte&gt; data;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;        <span class="keywordtype">void</span> readFromStream(Ogre::DataStreamPtr&amp; stream);</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;        <span class="keywordtype">void</span> loadImpl() <span class="keyword">override</span>;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;        <span class="keywordtype">void</span> unloadImpl() <span class="keyword">override</span>;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        <span class="keywordtype">size_t</span> calculateSize() <span class="keyword">const override</span>;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        <a class="code" href="class_ogre__gl_t_f_1_1_glb_file.html">GlbFile</a>(Ogre::ResourceManager* creator,</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;                 <span class="keyword">const</span> Ogre::String&amp; name,</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;                 Ogre::ResourceHandle handle,</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;                 <span class="keyword">const</span> Ogre::String&amp; group,</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;                 <span class="keywordtype">bool</span> isManual                      = <span class="keyword">false</span>,</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;                 Ogre::ManualResourceLoader* loader = <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_ogre__gl_t_f_1_1_glb_file.html">GlbFile</a>();</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        <span class="keyword">const</span> byte* getData() <span class="keyword">const</span>;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        <span class="keywordtype">size_t</span> getSize() <span class="keyword">const override</span>;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    };</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keyword">using</span> GlbFilePtr = Ogre::SharedPtr&lt;GlbFile&gt;;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="class_ogre__gl_t_f_1_1_glb_file_manager.html">   55</a></span>&#160;    <span class="keyword">class </span><span class="comment">/*Ogre_glTF_EXPORT*/</span> <a class="code" href="class_ogre__gl_t_f_1_1_glb_file_manager.html">GlbFileManager</a> : <span class="keyword">public</span> Ogre::ResourceManager, <span class="keyword">public</span> Ogre::Singleton&lt;GlbFileManager&gt;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    {</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        Ogre::Resource* <a class="code" href="class_ogre__gl_t_f_1_1_glb_file_manager.html#a9c6f32e99a79e21bdeda66530c630620">createImpl</a>(<span class="keyword">const</span> Ogre::String&amp; name, Ogre::ResourceHandle handle, <span class="keyword">const</span> Ogre::String&amp; group, <span class="keywordtype">bool</span> isManual, Ogre::ManualResourceLoader* loader, <span class="keyword">const</span> Ogre::NameValuePairList* createParams) <span class="keyword">override</span>;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        <a class="code" href="class_ogre__gl_t_f_1_1_glb_file_manager.html#ab52e0d903463635a91eaeefb923bedb4">GlbFileManager</a>();</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="class_ogre__gl_t_f_1_1_glb_file_manager.html#aa5d6d9beda468a81f609a675862fcfe8">~GlbFileManager</a>();</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        <span class="keyword">virtual</span> GlbFilePtr <a class="code" href="class_ogre__gl_t_f_1_1_glb_file_manager.html#a00d534d4810fb5316d5cc4b5ff0d0a7b">load</a>(<span class="keyword">const</span> Ogre::String&amp; name, <span class="keyword">const</span> Ogre::String&amp; group);</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        <span class="keyword">static</span> <a class="code" href="class_ogre__gl_t_f_1_1_glb_file_manager.html">GlbFileManager</a>&amp; <a class="code" href="class_ogre__gl_t_f_1_1_glb_file_manager.html#a9cf96803b0add7c98cd67f044d2e346b">getSingleton</a>();</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <span class="keyword">static</span> <a class="code" href="class_ogre__gl_t_f_1_1_glb_file_manager.html">GlbFileManager</a>* <a class="code" href="class_ogre__gl_t_f_1_1_glb_file_manager.html#add2684082a846eb8066eeb492380cb97">getSingletonPtr</a>();</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    };</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;}</div><div class="ttc" id="class_ogre__gl_t_f_1_1_glb_file_manager_html_a00d534d4810fb5316d5cc4b5ff0d0a7b"><div class="ttname"><a href="class_ogre__gl_t_f_1_1_glb_file_manager.html#a00d534d4810fb5316d5cc4b5ff0d0a7b">Ogre_glTF::GlbFileManager::load</a></div><div class="ttdeci">virtual GlbFilePtr load(const Ogre::String &amp;name, const Ogre::String &amp;group)</div><div class="ttdoc">Load a GLB and return a GlbFile object (using a smart pointer) </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f___ogre_resource_8cpp_source.html#l00068">Ogre_glTF_OgreResource.cpp:68</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1_glb_file_manager_html_aa5d6d9beda468a81f609a675862fcfe8"><div class="ttname"><a href="class_ogre__gl_t_f_1_1_glb_file_manager.html#aa5d6d9beda468a81f609a675862fcfe8">Ogre_glTF::GlbFileManager::~GlbFileManager</a></div><div class="ttdeci">virtual ~GlbFileManager()</div><div class="ttdoc">Will release the singleton. </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f___ogre_resource_8cpp_source.html#l00066">Ogre_glTF_OgreResource.cpp:66</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1_glb_file_html"><div class="ttname"><a href="class_ogre__gl_t_f_1_1_glb_file.html">Ogre_glTF::GlbFile</a></div><div class="ttdoc">Represet a GlbFile resource as outputed by the resource manager. </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f___ogre_resource_8hpp_source.html#l00011">Ogre_glTF_OgreResource.hpp:11</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1_glb_file_manager_html_a9cf96803b0add7c98cd67f044d2e346b"><div class="ttname"><a href="class_ogre__gl_t_f_1_1_glb_file_manager.html#a9cf96803b0add7c98cd67f044d2e346b">Ogre_glTF::GlbFileManager::getSingleton</a></div><div class="ttdeci">static GlbFileManager &amp; getSingleton()</div><div class="ttdoc">Return the single instance of the manager. </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f___ogre_resource_8cpp_source.html#l00078">Ogre_glTF_OgreResource.cpp:78</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1_glb_file_manager_html"><div class="ttname"><a href="class_ogre__gl_t_f_1_1_glb_file_manager.html">Ogre_glTF::GlbFileManager</a></div><div class="ttdoc">File manager. initialized by the plugin, this is for Ogre, not for you. </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f___ogre_resource_8hpp_source.html#l00055">Ogre_glTF_OgreResource.hpp:55</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1_glb_file_manager_html_add2684082a846eb8066eeb492380cb97"><div class="ttname"><a href="class_ogre__gl_t_f_1_1_glb_file_manager.html#add2684082a846eb8066eeb492380cb97">Ogre_glTF::GlbFileManager::getSingletonPtr</a></div><div class="ttdeci">static GlbFileManager * getSingletonPtr()</div><div class="ttdoc">Return the pointer to the single instance of the manager. </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f___ogre_resource_8cpp_source.html#l00080">Ogre_glTF_OgreResource.cpp:80</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1_glb_file_manager_html_a9c6f32e99a79e21bdeda66530c630620"><div class="ttname"><a href="class_ogre__gl_t_f_1_1_glb_file_manager.html#a9c6f32e99a79e21bdeda66530c630620">Ogre_glTF::GlbFileManager::createImpl</a></div><div class="ttdeci">Ogre::Resource * createImpl(const Ogre::String &amp;name, Ogre::ResourceHandle handle, const Ogre::String &amp;group, bool isManual, Ogre::ManualResourceLoader *loader, const Ogre::NameValuePairList *createParams) override</div><div class="ttdoc">This effectively create a resource. </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f___ogre_resource_8cpp_source.html#l00049">Ogre_glTF_OgreResource.cpp:49</a></div></div>
<div class="ttc" id="namespace_ogre__gl_t_f_html"><div class="ttname"><a href="namespace_ogre__gl_t_f.html">Ogre_glTF</a></div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f__internal__utils_8hpp_source.html#l00005">Ogre_glTF_internal_utils.hpp:5</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1_glb_file_manager_html_ab52e0d903463635a91eaeefb923bedb4"><div class="ttname"><a href="class_ogre__gl_t_f_1_1_glb_file_manager.html#ab52e0d903463635a91eaeefb923bedb4">Ogre_glTF::GlbFileManager::GlbFileManager</a></div><div class="ttdeci">GlbFileManager()</div><div class="ttdoc">Create the GlbFileManager. will also initialize the singleton. </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f___ogre_resource_8cpp_source.html#l00059">Ogre_glTF_OgreResource.cpp:59</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><b>Ogre_glTF_OgreResource.hpp</b></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>
